﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Styx;
using Styx.Common;
using Styx.CommonBot;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using ProwlTest;

namespace ProwlTest
{
    public partial class ProwlTestForm : Form
    {
        private static LocalPlayer intMe = StyxWoW.Me;

        public ProwlTestForm()
        {
            InitializeComponent();
        }

        private void ProwlTestForm_Load(object sender, EventArgs e)
        {
            pgSettings.SelectedObject = ProwlTestSettings.Instance;
        }

        private void pgSettings_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
        {
            if (pgSettings.SelectedObject != null && pgSettings.SelectedObject is ProwlTestSettings)
                ((ProwlTestSettings)pgSettings.SelectedObject).Save();
            var settings = ProwlTestSettings.Instance;
            ProwlTest.ProwlAPIKey = settings.prowlAPIKey;
        }
    }
}